<?php
class Event extends EmsModelObject
{
	private $eventName;
	public function EventName($value)
	{
	    if($value == NULL)
	        return $this->eventName;
	    $this->eventName = $value;
	            
	}
	
	private $eventDescription;
	public function EventDescription($value)
	{
	    if($value == NULL)
	        return $this->eventDescription;
	    $this->eventDescription = $value;        
	            
	}
	
	public function __construct($entity)
	{
		//Map entity to object
	}
	
	public function SaveChanges()
	{
		//Save changes to DB
	}
	
	public function IsValid()
	{
		if(!isset($this->eventName))
			return false;
		return true;
	}
	
	public static function GetType()
	{
		return __CLASS__;
	}
	
}
?>